<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<base href="<?php echo $ro->getBaseHref(); ?>" />
		<script type="text/javascript" src="<?php echo $ro->getBaseHref(); ?>jquery.js"></script>
		<script type="text/javascript" src="<?php echo $ro->getBaseHref(); ?>common.js"></script>
		<?php if (isset($t['rss'])):?><link rel="alternate" type="application/rss+xml" title="<?php echo $t['rss_title'];?>" href="<?php echo $t['rss'];?>"/><?php endif;?>
		<?php if (isset($t['openid_server'])): ?>
			<link rel="openid.server" href="<?php echo $t['openid_server'];?>"/>
			<?php if (isset($t['openid_server_delegate'])): ?>
			<link rel="openid.delegate" href="<?php echo $t['openid_server_delegate'];?>"/>
			<?php endif;?>
		<?php endif;?>
		<link rel="stylesheet" type="text/css" href="<?php echo $ro->getBaseHref(); ?>/styles/basic/common.css"/>
		<title><?php if(isset($t['title'])) echo htmlspecialchars($t['title']) . ' - '; echo WereWordConfig::get('blog.name'); ?></title>
	</head>
	<body>
	<h1 id="heading"><a href="<?php echo $ro->gen('root');?>"><?php echo WereWordConfig::get('blog.name'); ?></a></h1>
	    
	<div id="rightbox">
		<?php if (isset($slots['account'])):?>
		<div class="applet">
		<?php echo $slots['links']; ?>
		</div>
		<?php endif;?>	
			
		<?php if (isset($slots['account'])):?>
		<div class="applet">
		<?php echo $slots['account']; ?>
		</div>
		<?php endif;?>
		
		<?php if (isset($slots['tags'])):?>
		<div class="applet">
		<?php echo $slots['tags']; ?>
		</div>
		<?php endif;?>
		
		<?php if ($us->isAuthenticated()):?>
		<div class="applet">
		<?php echo $slots['user_actions']; ?>
		</div>
		<?php endif;?>
	</div>
	
	<div id="content">
	    <?php echo $inner; ?>
	</div>
	
	<div id="copyright">Copyright © 2009 Sergei Stolyarov</div>
	<?php echo $slots['counters_analytics']; ?>
	</body>
</html>
